package com.swjd.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.swjd.dao.UserDao;
import com.swjd.po.user;
import com.swjd.service.UserService;

//用户逻辑实现层
@Service
@Transactional
public class UserServiceimpl implements UserService {
	@Autowired
	private UserDao userdao;

//根据用户名查询所有用户信息	
	@Override
	public user findUserByUsercode(String user_code) {
		user user = userdao.findUserByUsercode(user_code);
		return user;
	}

}
